<?php
	if(!defined("IN_APP"))
	{
		exit;
	}
	
	if(!adminpermission('S','130000'))
	{
		echo '无权查看!';
		exit;
	}
	
	$sqlTools = new _SqlTool();
	
	$parm = requestArrayParm($_REQUEST);
	
	if($parm['m'] == 'list')
	{
		unset($wheres,$pages,$sorts,$list);
		
		if($parm['start'] && $parm['end'])
		{
			$wheres['fbtime'] = array('>=',strtotime($parm['start']));
			
			$wheres['fbtime'] = array('<=',strtotime($parm['end'])+86399);
		}
		
		$pages['rows'] = 20;
		$pages['page'] = getParam('page','get',1);
		$wheres['status'] = '1';
		$sorts['fbtime'] = 'desc';
		$resData = $sqlTools::getList('zhuanrang', $wheres, $pages, $sorts, $between);
		
		foreach ($resData['list'] as $key => $v)
		{
			$list[] = $v;
		}
		
		$pageurl = SITE_URL.'index.php?'.set_URL_Param(get_URL_Param());
	
		$pagetotal = $resData["pages"];
		
		include renderTemplate('shenhe/zrlist');
	}